using UnityEngine;

public class UI_MainMenu : MonoBehaviour
{
    private void Start()
    {
        transform.root.GetComponentInChildren<UI_FadeEffect>().DoFadeOut();
        transform.root.GetComponentInChildren<UI_Option>(true).LoadUpVolume();
        AudioManager.Instance.StartBGM("PlayList_MainMenu");
    }
    public void PlayBTN()
    {
        AudioManager.Instance.PlayGlobalSFX("Button_Click");
        GameManager.Instance.StartGame();
    }

    public void QuitGameBTN()
    {
        Application.Quit();
    }
}
